﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using RoadTeam.BLL;
using System.Data;

public partial class 分页_GetPageData : System.Web.UI.Page
{
    protected void Button1_Click(object sender, EventArgs e)
    {
        int CurrentPage = Convert.ToInt32(this.CurrentPage.Text);
        int PageSize = Convert.ToInt32(this.PageSize.Text);
        String OrganIdentifier = this.OrganIdentifier.Text;
        RmUnit2Bll bll = new RmUnit2Bll();
        DataTable dt = bll.GetUnitData(OrganIdentifier, CurrentPage, PageSize);
        GridView1.DataSource = dt;
        GridView1.DataBind();
        RmCustBll bllcust = new RmCustBll();
        DataTable dt_Cust = bllcust.SyncCustData(dt);
        GridView2.DataSource = dt_Cust;
        GridView2.DataBind();

        this.CurrentPage.Text = (CurrentPage + 1).ToString();


    }
}